package com.design.mode.obsever;

import java.util.Observable;

public class Observed extends Observable {

	public void notifyChange(int count) throws InterruptedException {

		for (int i = 0; i < count; i++) {
			setChanged();
			notifyObservers();
			Thread.sleep(1000);

		}

	}

}
